package com.wss.day04.test03;

/**
 * @author wangshaoshuai
 * @desc TODO
 * @date 2025/4/22
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();

        IMobileStorage uDisk = new UDisk();
        IMobileStorage mobileHardDisk = new MobileHardDisk();
        MP3Player mp3Player = new MP3Player();

        computer.dataExchange(uDisk);
        computer.dataExchange(mobileHardDisk);
        computer.dataExchange(mp3Player);

        computer.playMP3Music(mp3Player);
    }
}
